
#ifndef _TY_UTIL_H_
#define _TY_UTIL_H_

#include <string>
#include <sstream>
#include <vector>

namespace tylenol { namespace util {

bool IsInternalIP(std::string &str);

template <typename T>
std::string NumToString( T number )
{
	std::ostringstream strstream;
	strstream << number;
	return strstream.str();
}

std::vector<std::string> split( std::string& str, std::string separators );

// for packet cryption
void xorEncode(unsigned char* src, int srclen, unsigned char* key, int keylen, unsigned char* ret);


} /*util*/ } /*tylenol*/


#endif /* _TY_UTIL_H_ */
